import ajax from '@/utils/request.js'

export function sendImPlan(imGroupId, solutionId) {
	return ajax({
		url: `/mobile/im/imSendSolution/${imGroupId}/${solutionId}`,
		method: 'GET'
	})
}
export function sendImPlanUser(imId, solutionId) {
	return ajax({
		url: `/mobile/im/imToUserSendSolution/${imId}/${solutionId}`,
		method: 'GET'
	})
}


export function getImPlanDetails(imGroupId, solutionId) {
	return ajax({
		url: `/mobile/im/showSolution/${imGroupId}/${solutionId}`,
		method: 'GET'
	})
}

export function imGetQuestionShow(imGroupId) {
	return ajax({
		url: '/mobile/im/imGetQuestionShow/' + imGroupId,
		method: 'GET'
	})
}

export function imSendQuestion(imGroupId, solutionId) {
	return ajax({
		url: `/mobile/im/imSendQuestion/${imGroupId}/${solutionId}`,
		method: 'GET'
	})
}
export function imSendQuestionUser(imGroupId) {
	return ajax({
		url: `/mobile/im/imGetUserQuestionShow/${imGroupId}`,
		method: 'GET'
	})
}

export function imShowTrainee(imGroupId, solutionId) {
	return ajax({
		url: `/mobile/im/showTrainee/${imGroupId}/${solutionId}`,
		method: 'GET'
	})
}

export function getQuestionShowState(data) {
	return ajax({
		url: `/mobile/student/index/isStudents`,
		method: 'POST',
		data
	})
}

